import auth
from mod_python import apache
from mod_python import util

def index(req):
        req.content_type = 'text/plain'
	req.headers_out.add("Location", auth.AuthUrl())
	req.status = apache.HTTP_MOVED_TEMPORARILY

def authed(req):
	req.content_type = 'text/plain'
	req.write(auth.Authed(req))
